<?php
/**
 * Created by PhpStorm.
 * User: zhangrxiang
 * Date: 17-2-19
 * Time: 下午3:45
 */

error_reporting(E_ALL);
$manager = new MongoDB\Driver\Manager("mongodb://localhost:27017");


$server = $manager->getServers();
print_r($server);
echo "<pre>";
//var_dump($manager);